import { getList } from '../api/index'

export let get_List = () => {
    return async (dispatch) => {
        let { data } = await getList()
        dispatch({
            type: 'GET_LIST',
            payload: data
        })
    }
}

export let clickBtn = (index) => {
    return dispatch => {
        dispatch({
            type: 'CLICK_BTN',
            payload: index
        })
    }
}